﻿# 長さチェック用テーブル。
#

package Xls2dat;
use strict;
use utf8;

our %LENGTH_TABLE = (
	"nickname.xls"   => [ { reg => qr/^BREEDER_PNAME_\d{3}$/,       eom_cut => "no",  limit => 10 },
						  { reg => qr/^BREEDER_BNAME_\d{3}$/,       eom_cut => "no",  limit =>  7 },
						  { reg => qr/^KOUKAN_NICKNAME_\d{3}$/,     eom_cut => "no",  limit => 10 },
						  { reg => qr/^KOUKAN_PARENTNAME_\d{3}$/,   eom_cut => "no",  limit =>  7 },
						  { reg => qr/^PORTRAIT_POKENAME_\d{3}$/,   eom_cut => "no",  limit => 10 },
						  { reg => qr/^PORTRAIT_PARENTNAME_\d{3}$/, eom_cut => "no",  limit =>  7 } ],
	"fightmsg.xls"   => [ { reg => qr/^ZOKUSEI_WAZA_STR\d{2}$/,     eom_cut => "no",  limit => 21 } ],
	"itemname.xls"   => [ { reg => qr/^.*$/,                        eom_cut => "no",  limit => 12 } ],
	"kaiwa.xls"      => [ { reg => qr/^.*$/,                        eom_cut => "no",  limit => 12 } ],
	"mapname.xls"    => [ { reg => qr/^str_mapname\d{3}$/,          eom_cut => "no",  limit => 16 },
						  { reg => qr/^pyramid_floor\d{3}$/,        eom_cut => "no",  limit => 16 },
						  { reg => qr/^MagmaAgito$/,                eom_cut => "no",  limit => 16 },
						  { reg => qr/^GeneiTower$/,                eom_cut => "no",  limit => 16 },
						  { reg => qr/^CaveHenge$/,                 eom_cut => "no",  limit => 16 },
						  { reg => qr/^CaveSubway$/,                eom_cut => "no",  limit => 16 },
						  { reg => qr/^TrainerHill$/,               eom_cut => "no",  limit => 16 } ],
	"trainer.xls"    => [ { reg => qr/^TRAINER_NAME_\d{3}$/,        eom_cut => "no",  limit => 10 },
						  { reg => qr/^BTF_TR_NAME_\d{3}$/,         eom_cut => "no",  limit =>  7 },
						  { reg => qr/^BTD_TR[1-3]_NAME_\d{3}$/,    eom_cut => "no",  limit =>  7 },
						  { reg => qr/^PUPIL_BASE_\d{3}[JEFIGS]$/,  eom_cut => "yes", limit =>  7 },
						  { reg => qr/^TH_[1-4]_TR[1-8]_NAME$/,     eom_cut => "no",  limit => 10 } ],
	"tr_name.xls"    => [ { reg => qr/^.*$/,                        eom_cut => "no",  limit => 12 } ],
	"wazaname.xls"   => [ { reg => qr/^.*$/,                        eom_cut => "no",  limit => 12 } ],
	"gds_name.xls"   => [ { reg => qr/^GOODSNAME\d{3}$/,            eom_cut => "no",  limit => 15 } ],
	"monsclass.xls"  => [ { reg => qr/^ZUKAN_TYPE_\d{3}$/,          eom_cut => "no",  limit => 11 } ],
	"monsname.xls"   => [ { reg => qr/^POKE_NAME_\d{3}$/,           eom_cut => "no",  limit => 10 } ],
	"tane_tbl.xls"   => [ { reg => qr/^TANENAME\d{3}$/,             eom_cut => "no",  limit =>  6 } ],
	"tokusyu.xls"    => [ { reg => qr/^SPEABI_NAME_\d{3}$/,         eom_cut => "no",  limit => 12 } ],
	"zokusei.xls"    => [ { reg => qr/^ZOKUSEI_MSG_\d{2}$/,         eom_cut => "no",  limit =>  6 } ],
	"message.xls"    => [ { reg => qr/^SEX_(OSU|MESU|NONE)$/,       eom_cut => "no",  limit =>  1 },
						  { reg => qr/^B_FRONTIER_RANK_STR[123]$/,  eom_cut => "no",  limit =>  2 } ],
	"debug_message.xls" => [ { reg => qr/^ANM_NAME_DATA_\d{3}$/,       eom_cut => "no",  limit => 12 } ]
);
